package com.example.biyesheji.utils;

import com.example.biyesheji.model.result.LayuiPageTable;
import com.example.biyesheji.pojo.ProductSales;
import lombok.Data;

import java.util.List;

public class LayuiFactory {
    public static LayuiPageTable defaultPageTable(List<ProductSales> list){
        LayuiPageTable layuiPageTable =new LayuiPageTable();
        layuiPageTable.setCode(0);
        layuiPageTable.setCount(100);
        layuiPageTable.setMsg("success");
        layuiPageTable.setData(list);
        return layuiPageTable;
    }
}
